package cn.com.pajx.pajx_visitor_v3.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * create by ruancw on 2024/2/28.
 * description
 */
public class AppBean implements Parcelable {


    private String vs_app_id;
    private String version;
    private String version_id;
    private String up_desc;
    private String up_time;
    private String download_url;
    private String message;
    private boolean force_update;

    protected AppBean(Parcel in) {
        vs_app_id = in.readString();
        version = in.readString();
        version_id = in.readString();
        up_desc = in.readString();
        up_time = in.readString();
        download_url = in.readString();
        message = in.readString();
        force_update = in.readByte() != 0;
    }

    public static final Creator<AppBean> CREATOR = new Creator<AppBean>() {
        @Override
        public AppBean createFromParcel(Parcel in) {
            return new AppBean(in);
        }

        @Override
        public AppBean[] newArray(int size) {
            return new AppBean[size];
        }
    };

    public String getVs_app_id() {
        return vs_app_id;
    }

    public void setVs_app_id(String vs_app_id) {
        this.vs_app_id = vs_app_id;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getVersion_id() {
        return version_id;
    }

    public void setVersion_id(String version_id) {
        this.version_id = version_id;
    }

    public String getUp_desc() {
        return up_desc;
    }

    public void setUp_desc(String up_desc) {
        this.up_desc = up_desc;
    }

    public String getUp_time() {
        return up_time;
    }

    public void setUp_time(String up_time) {
        this.up_time = up_time;
    }

    public String getDownload_url() {
        return download_url;
    }

    public void setDownload_url(String download_url) {
        this.download_url = download_url;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isForce_update() {
        return force_update;
    }

    public void setForce_update(boolean force_update) {
        this.force_update = force_update;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(vs_app_id);
        parcel.writeString(version);
        parcel.writeString(version_id);
        parcel.writeString(up_desc);
        parcel.writeString(up_time);
        parcel.writeString(download_url);
        parcel.writeString(message);
        parcel.writeByte((byte) (force_update ? 1 : 0));
    }
}
